﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Sdk.WeiXin.Domain.pay
{
    public class PayDto
    {
        /// <summary>
        /// 支付状态: wait: 待支付, success: 已支付
        /// </summary>
        public string payStatus { get; set; } = "wait";
        public string timeStamp { get; set; }
        public string nonceStr { get; set; }
        public string prepayId { get; set; }
        public string paySign { get; set; }
    }


    public class PayInput
    {
        /// <summary>
        /// 小程序ID（服务商模式时是公众号ID）
        /// </summary>
        public string AppId { get; set; } = string.Empty;
        public string MchId { get; set; } = string.Empty;
        public string MchKey { get; set; } = string.Empty;
        public string CertPath { get; set; } = string.Empty;
        /// <summary>
        /// 子商户ID(服务商模式)
        /// </summary>
        public string SubMchId { get; set; } = string.Empty;
        /// <summary>
        /// 小程序ID（服务商模式）
        /// </summary>
        public string SubAppId { get; set; } = string.Empty;

        /// <summary>
        /// 是否分账: 0 不分账, 1分账
        /// </summary>
        public int profit { get; set; } = 0;

        public string OpenId { get; set; } = string.Empty;

        ///// <summary>
        ///// 商户侧订单号
        ///// </summary>
        //public string TradeNo { get; set; } = string.Empty;
        //public int TotalFee { get; set; } = 0;
        //public string OpenId { get; set; } = string.Empty;
        //public string IP { get; set; } = string.Empty;
        ///// <summary>
        ///// 自定义标识
        ///// </summary>
        //public string Attach { get; set; } = string.Empty;

    }
}
